package cn.fzkj.springboot.common;

/**
 * @DESCRIPTION 统一返回状态码
 */
public enum ResultCode {
    RC100("100","请求失败"),
    RC200("200", "请求成功"),
    RC404("404","资源不存在"),
    RC500("500", "服务器内部错误"),

    INVALID_TOKEN("4001","令牌不合法"),
    ACCESS_DENIED("4002","没有权限"),
    USERNAME_OR_PASSWORD_ERROR("4003","用户名或密码错误")
    ;

    private final String status;
    private final String message;

    ResultCode(String status, String message) {
        this.status = status;
        this.message = message;
    }

    public String getStatus(){
        return this.status;
    }
    public String getMessage(){
        return this.message;
    }
}
